import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Football from '@/components/Football'

import Login from '@/components/auth/Login'
import Register from '@/components/auth/Register'
import OrderItems from '@/components/order/Items'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    }, {
      path: '/product/football',
      name: 'football',
      component: Football
    }, {
      path: '/login',
      name: 'login',
      component: Login
    }, {
      path: '/register',
      name: 'register',
      component: Register
    }, {
      path: '/order/items',
      name: 'orderItems',
      component: OrderItems,
      meta: {
        requiresAuth: true
      }
    }
  ]
})
